﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/FrontPage.Master" Inherits="System.Web.Mvc.ViewPage<ZXCompany.Models.Entity.ZX_TrainInfo>" %>
<%@import Namespace="ZXCompany.Models.Entity" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP_Content" runat="server">

    <div class="clear"></div>
<div class="p_dao">
<ul>
<li> 
当前位置 ：<%=Html.ActionLink("首页", "Index", "Home", null, new { @class = "position_aclass" })%>&gt;<%=Html.ActionLink("业务领域", "Index", "Business", null, new { @class = "position_nowtitle" })%> &gt;培训中心
</li>
</ul>
</div>
<div class="container clearfix">
<div class="p_left">
<div class="leftlist" id="com_sort_products" editok="online">
<h1>业务领域</h1>
<ul class="ullist_sortnav">
<li class="p_s_li1">
<%=Html.ActionLink("整体Image", "Index", "Business", null, new { @class = "p_s_li1_a" })%>
</li>
<li class="p_s_li1">
<%=Html.ActionLink("战略咨询", "StratagemQuestion", "Business", null, new { @class = "p_s_li1_a" })%>
</li>
<li class="p_s_li0">
<%=Html.ActionLink("精益生产", "PlustekProduction", "Business", null, new { @class = "p_s_li0_a" })%>
</li>
<li class="p_s_li0">
<%=Html.ActionLink("品质改善", "QualityChange", "Business", null, new { @class = "p_s_li0_a" })%>
</li>
<li class="p_s_li0">
<%=Html.ActionLink("培训中心", "TrainCenter", "Business", null, new { @class = "p_s_li0_a" })%>
</li>
<li class="p_s_li0">
<%=Html.ActionLink("信息技术", "InfomaitionSkill", "Business", null, new { @class = "p_s_li0_a" })%>
</li>
</ul>
</div>
<div class="clear">
</div>
</div>
<div class="p_rig1">
<%List<ZX_TrainList> ltrain = (List<ZX_TrainList>)ViewData["ltrain"];%>
<table>
    <%--<%foreach (ZX_TrainList zxexpert in ltrain)
      {
          %>--%>
        <tr>
        <%for (int i = 0; i < ltrain.Count; i++) {
              if ((i + 1) % 4 == 0 || (i + 1) == ltrain.Count)
              {
                %>
                    <td>
                        <table>
                            <tr>
                            <td>
                                <%=ltrain[i].trainName %>
                            </td>
                            </tr>
                            <tr>
                            <td>
                            <a href='<%=Url.Action("TrainDetail", "Business", new{trainid=ltrain[i].ID}) %>'>
                            <img src="<%=ltrain[i].trainImage %>"
                                style=" width:170px; height:150px" alt="" />
                            </a>
                            </td></tr>
                        </table>
                    </td>
                    </tr>
                <%
                  if ((i + 1) != ltrain.Count)
                  { %>
                  <tr>
                  <%}
              }
              else
              { %>
                <td>
                        <table>
                            <tr><td><%=ltrain[i].trainName%></td></tr>
                            <tr><td>
                                <a href='<%=Url.Action("TrainDetail", "Business", new{trainid=ltrain[i].ID}) %>'>
                            <img src="<%= ltrain[i].trainImage%>" 
                                style=" width:170px; height:150px" alt=""/></a>
                            </td></tr>
                        </table>
                </td>
                    <%
              }    
          } %>      
  <%--<%
          
      }%>--%>
  </table>
  <table>
  <tr>
    <td>
    <%ZX_TrainInfo tinfo = (ZX_TrainInfo)ViewData["traininfo"]; %>
    <%=tinfo.trainInfo %>
    </td>
  </tr>
  </table>
</div>
<div class="clear"></div>

</div>

</asp:Content>
